-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish rich text build types #49651
Conversation
Components changelog shouldn't be required for these tweaks, but let me know :) |
Size Change: +13 B (0%) Total Size: 1.37 MB
ℹ️ View Unchanged
|
Flaky tests detected in eceb797. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4634353443
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this 👍
It's looking great overall, my only concern is related to the subtle way we introduce circular dependencies.
I'd also suggest adding a CHANGELOG entry, since this would be a breaking change for anyone who uses the DT version for typing this package. It will likely need an entry in the @wordpress/components
CHANGELOG as well.
You're definitely right, but the main reason I didn't do that is because I wanted to avoid deeper changes to how things work in these packages. The second part of that consideration is that the original rich-text files are still in JS (and typed via JSDoc). While having the types different in two different places is not a good place to be, it has already been the case for a while.
I'm also not convinced we are introducing a circular dependency -- from what I can tell, I mean, basically, components doesn't import any type information from Definitely not saying this situation is ideal, but I personally don't think this should be a blocker. However, I'll explore moving those rich text types, and if it's straight forward, I'll add that :) |
eceb797
to
df8a301
Compare
c0b7fea
to
45b1155
Compare
4e625b1
to
15b401a
Compare
I've just pushed another commit to fix a couple of wrong imports that were breaking the package TS build. Going to take a thorough look now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great from my perspective 👍
Thank you @noahtallen, great work as always 🚀
Might need another rebase since the failures don't seem related, but they seem to persist. |
5acaa3f
to
bbe2723
Compare
The Puppeteer 3 suite seems to be failing across all commits right now, unfortunately. |
What?
Publish rich text build types.
Why?
See #49647
How?
Add the tsconfig and fix any issues that came up! There were one or two mismatches between components and rich text, and I don't think my fixes should break anything
Testing Instructions
CI